﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dapper.Contrib.Extensions;

namespace Weight.Model.TableEntity
{
    [Table("ContractTicketConsume")]
    public class ContractTicketConsumeEntity
    {
        [ExplicitKey]
        /// <summary>
        /// 编号
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 主订单号
        /// </summary>
        public string MainId { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string TicketId { get; set; }

        /// <summary>
        /// 车号
        /// </summary>
        public string PlateNum { get; set; }

        /// <summary>
        /// 货物名称
        /// </summary>
        public string Material { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 消费量
        /// </summary>
        public decimal ConsumeVal { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        public decimal ConsumeMoney { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 消费人
        /// </summary>
        public string Consumer { get; set; }

        /// <summary>
        /// 消费时间
        /// </summary>
        public string ConsumeTime { get; set; }

        /// <summary>
        /// 订单模式
        /// </summary>
        public string Mode { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }

        /// <summary>
        /// 下载标记
        /// </summary>
        public int UploadFlag { get; set; }

        /// <summary>
        /// 更新标记
        /// </summary>
        public int UpdateFlag { get; set; }
    }
}
